import numpy as np
import cv2 as cv

cap = cv.VideoCapture(0)
h = cap.get(cv.CAP_PROP_FRAME_HEIGHT)
w = cap.get(cv.CAP_PROP_FRAME_WIDTH)

while True:
    ret,frame = cap.read()
    if ret:
        #rgb = cv.cvtColor(frame,cv.COLOR_BGR2RGB)
        cv.imshow("me",frame)
        if cv.waitKey(100) & 0xff == ord('q'): break

cap.release()
cv.destroyAllWindows()
